﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FD7 RID: 4055
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTalentInfoList : IMessage<RogueTalentInfoList>, IMessage, IEquatable<RogueTalentInfoList>, IDeepCloneable<RogueTalentInfoList>, IBufferMessage
	{
		// Token: 0x1700334C RID: 13132
		// (get) Token: 0x0600B561 RID: 46433 RVA: 0x001E9719 File Offset: 0x001E7919
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTalentInfoList> Parser
		{
			get
			{
				return RogueTalentInfoList._parser;
			}
		}

		// Token: 0x1700334D RID: 13133
		// (get) Token: 0x0600B562 RID: 46434 RVA: 0x001E9720 File Offset: 0x001E7920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTalentInfoListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700334E RID: 13134
		// (get) Token: 0x0600B563 RID: 46435 RVA: 0x001E9732 File Offset: 0x001E7932
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTalentInfoList.Descriptor;
			}
		}

		// Token: 0x0600B564 RID: 46436 RVA: 0x001E9739 File Offset: 0x001E7939
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTalentInfoList()
		{
		}

		// Token: 0x0600B565 RID: 46437 RVA: 0x001E974C File Offset: 0x001E794C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTalentInfoList(RogueTalentInfoList other) : this()
		{
			this.talentInfo_ = other.talentInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B566 RID: 46438 RVA: 0x001E9776 File Offset: 0x001E7976
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTalentInfoList Clone()
		{
			return new RogueTalentInfoList(this);
		}

		// Token: 0x1700334F RID: 13135
		// (get) Token: 0x0600B567 RID: 46439 RVA: 0x001E977E File Offset: 0x001E797E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueTalentInfo> TalentInfo
		{
			get
			{
				return this.talentInfo_;
			}
		}

		// Token: 0x0600B568 RID: 46440 RVA: 0x001E9786 File Offset: 0x001E7986
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTalentInfoList);
		}

		// Token: 0x0600B569 RID: 46441 RVA: 0x001E9794 File Offset: 0x001E7994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTalentInfoList other)
		{
			return other != null && (other == this || (this.talentInfo_.Equals(other.talentInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B56A RID: 46442 RVA: 0x001E97C8 File Offset: 0x001E79C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.talentInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B56B RID: 46443 RVA: 0x001E97FC File Offset: 0x001E79FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B56C RID: 46444 RVA: 0x001E9804 File Offset: 0x001E7A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B56D RID: 46445 RVA: 0x001E980D File Offset: 0x001E7A0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.talentInfo_.WriteTo(ref output, RogueTalentInfoList._repeated_talentInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B56E RID: 46446 RVA: 0x001E9834 File Offset: 0x001E7A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.talentInfo_.CalculateSize(RogueTalentInfoList._repeated_talentInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B56F RID: 46447 RVA: 0x001E986D File Offset: 0x001E7A6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTalentInfoList other)
		{
			if (other == null)
			{
				return;
			}
			this.talentInfo_.Add(other.talentInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B570 RID: 46448 RVA: 0x001E989B File Offset: 0x001E7A9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B571 RID: 46449 RVA: 0x001E98A4 File Offset: 0x001E7AA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.talentInfo_.AddEntriesFrom(ref input, RogueTalentInfoList._repeated_talentInfo_codec);
				}
			}
		}

		// Token: 0x04004951 RID: 18769
		private static readonly MessageParser<RogueTalentInfoList> _parser = new MessageParser<RogueTalentInfoList>(() => new RogueTalentInfoList());

		// Token: 0x04004952 RID: 18770
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004953 RID: 18771
		public const int TalentInfoFieldNumber = 6;

		// Token: 0x04004954 RID: 18772
		private static readonly FieldCodec<RogueTalentInfo> _repeated_talentInfo_codec = FieldCodec.ForMessage<RogueTalentInfo>(50U, RogueTalentInfo.Parser);

		// Token: 0x04004955 RID: 18773
		private readonly RepeatedField<RogueTalentInfo> talentInfo_ = new RepeatedField<RogueTalentInfo>();
	}
}
